package com.dao;

import com.mypg.Icon;
import com.mypg.News;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

public interface IconDao {
    List<Icon> selectAllIcon();
    Icon selectIconByIcon_id(int icon_id);
    List<Icon> selectIconFor_icon_table_jsp(@Param("icon_class")String icon_class,@Param("start_row")int start_row,
                                            @Param("page_nums")int page_nums);
    int selectIcon_count_For_icon_table_jsp(String icon_class);
    int selectIcon_count();

    void insertIcon(Icon icon);

    void deleteIconByIcon_id(int icon_id);

    void updateIconByIcon_id(Icon icon);
    void updateIcon_imgByIcon_id(@Param("icon_img")String icon_img,@Param("icon_id")int icon_id);
}
